package me.jiatao.mvpdagger2.mvc.userinfo;


import me.jiatao.mvpdagger2.entity.UserInfo;
import me.jiatao.mvpdagger2.mvc.base.IBaseModel;
import me.jiatao.mvpdagger2.mvc.base.IBaseView;

/**
 * Created by JiaTao on 2018/8/30.
 * Email: 535318720@qq.com
 * Version: 1.0
 * Description:
 */
public class IUserInfoContract {
    // user View 层
    public interface IUserInfoView extends IBaseView {
        // 1.正在加载中
        void onLoading();

        // 2.获取出错了
        void onError();

        // 3.成功了要显示数据
        void onSucceed(UserInfo userInfo);
    }

    // user presenter 层
    public interface IUserInfoPresenter {
        void getUsers();
    }

    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,如是否使用缓存
    public interface IUserInfoModel extends IBaseModel {
        UserInfo getUsers();
    }
}
